package model;

import processing.core.PApplet;

public class Dat {
	float[][] parameter; 
	int total_t = 20; 
	int total_k = 10; 
	
	public static Topic createTopic(int w, int h, int y){
		switch (y){
		case 2008:
			return createTopic_2008(w, h); 
		case 2009:
			return createTopic_2009(w, h); 
		case 2010:
			return createTopic_2010(w, h); 
		case 2011:
			return createTopic_2011(w, h);
		default:
			return null; 
		}
	}
	public static Topic createTopic_2011(int w, int h){
		Topic group = Topic.Root("Topics in Health", w, h); 
		Topic t1 = group.addMember("Population", 80, true);
		t1.addMember("level", 50); 
		t1.addMember("age", 45); 
		t1.addMember("sex", 40); 
		t1.addMember("race", 35); 
		t1.addMember("Hispanic", 30); 
		t1.addMember("origin", 25);
		t1.addMember("income", 25); 
		Topic t2 = group.addMember("Natality", 90, true);
		t2.addMember("weight", 50);
		t2.addMember("height", 45); 
		t2.addMember("birth", 40); 
		t2.addMember("feeding", 35);
		t2.addMember("pregnancy", 30);
		t2.addMember("abortion", 25); 
		t2.addMember("contracept", 25);
		Topic t3 = group.addMember("Mortality", 90, true);
		t3.addMember("expectancy", 50); 
		t3.addMember("cardiovascular", 45);
		t3.addMember("diseases", 40);
		t3.addMember("injuries", 35);
		t3.addMember("cause", 30);
		t3.addMember("drug", 25);
		t3.addMember("accident", 25); 
		Topic t4 = group.addMember("Measure of Health", 90, true);
		t4.addMember("occupation", 50); 
		t4.addMember("geography", 50); 
		t4.addMember("diabetes", 45); 
		t4.addMember("urbanization", 40); 
		t4.addMember("obesity", 35); 
		t4.addMember("education", 30); 
		t4.addMember("smoking", 25); 
		Topic t5 = group.addMember("Abulatory Care", 100, true); 
		t5.addMember("prescription", 50); 
		t5.addMember("outpatient", 50); 
		t5.addMember("vaccination", 45); 
		t5.addMember("influenza", 40); 
		t5.addMember("emergency", 35); 
		t5.addMember("mammography", 30);  
		t5.addMember("rehabilitation", 25); 
		Topic t6 = group.addMember("Inpatient Care", 100, true);
		t6.addMember("hospital", 50); 
		t6.addMember("admission", 50); 
		t6.addMember("discharge", 45);  
		t6.addMember("diagnosis", 35); 
		t6.addMember("procedure", 30); 
		t6.addMember("visit", 30); 
		t6.addMember("surgery", 30);  
		Topic t7 = group.addMember("Resources", 180); 
		Topic t7_1 = t7.addMember("Personnel", 90, true); 
		t7_1.addMember("doctor", 50);
		t7_1.addMember("physician", 45);
		t7_1.addMember("medicine", 40);
		t7_1.addMember("patient", 40);
		t7_1.addMember("employment", 35);
		t7_1.addMember("specialty", 30);
		t7_1.addMember("enrollment", 25); 
		Topic t7_2 = t7.addMember("Facilities", 90, true); 
		t7_2.addMember("hospital", 50); 
		t7_2.addMember("occupancy", 45);
		t7_2.addMember("MRI", 40); 
		t7_2.addMember("CT", 40);
		t7_2.addMember("bed", 35); 
		t7_2.addMember("medicare", 30); 
		t7_2.addMember("supplier", 25); 
		Topic t8 = group.addMember("Cost", 160);
		Topic t8_1 = t8.addMember("Expenditures", 80, true);
		t8_1.addMember("insurance", 50); 
		t8_1.addMember("expense", 45);
		t8_1.addMember("GDP", 40); 
		t8_1.addMember("CPI", 40); 
		t8_1.addMember("growth", 35); 
		t8_1.addMember("service", 30);
		t8_1.addMember("payment", 25);
		Topic t8_2 = t8.addMember("Programs", 80, true); 
		t8_2.addMember("medicaid", 50); 
		t8_2.addMember("beneficiary", 45); 
		t8_2.addMember("reimburse", 40); 
		t8_2.addMember("veteran", 35); 
		t8_2.addMember("FFS", 35);
		t8_2.addMember("eligibility", 30);
		t8_2.addMember("enrollee", 25); 
		return group; 
	}
	public static Topic createTopic_2010(int w, int h){
		//TODO
		Topic group = Topic.Root("Topics in Health", w, h); 
		Topic t1 = group.addMember("Population", 90, true);
		t1.addMember("level", 50); 
		t1.addMember("age", 45); 
		t1.addMember("sex", 40); 
		t1.addMember("race", 35); 
		t1.addMember("Hispanic", 30); 
		t1.addMember("origin", 25);
		t1.addMember("income", 25); 
		Topic t2 = group.addMember("Natality", 85, true);
		t2.addMember("weight", 50);
		t2.addMember("height", 45); 
		t2.addMember("birth", 40); 
		t2.addMember("feeding", 35);
		t2.addMember("pregnancy", 30);
		t2.addMember("abortion", 25); 
		t2.addMember("contracept", 25);
		Topic t3 = group.addMember("Mortality", 80, true);
		t3.addMember("expectancy", 50); 
		t3.addMember("cardiovascular", 45);
		t3.addMember("diseases", 40);
		t3.addMember("injuries", 35);
		t3.addMember("cause", 30);
		t3.addMember("drug", 25);
		t3.addMember("accident", 25); 
		Topic t4 = group.addMember("Measure of Health", 100, true);
		t4.addMember("occupation", 50); 
		t4.addMember("geography", 50); 
		t4.addMember("diabetes", 45); 
		t4.addMember("urbanization", 40); 
		t4.addMember("obesity", 35); 
		t4.addMember("education", 30); 
		t4.addMember("smoking", 25); 
		Topic t5 = group.addMember("Abulatory Care", 98, true); 
		t5.addMember("prescription", 50); 
		t5.addMember("outpatient", 50); 
		t5.addMember("vaccination", 45); 
		t5.addMember("influenza", 40); 
		t5.addMember("emergency", 35); 
		t5.addMember("mammography", 30);  
		t5.addMember("rehabilitation", 25); 
		Topic t6 = group.addMember("Inpatient Care", 98, true);
		t6.addMember("hospital", 50); 
		t6.addMember("admission", 50); 
		t6.addMember("discharge", 45);  
		t6.addMember("diagnosis", 35); 
		t6.addMember("procedure", 30); 
		t6.addMember("visit", 30); 
		t6.addMember("surgery", 30);  
		Topic t7 = group.addMember("Resources", 170); 
		Topic t7_1 = t7.addMember("Personnel", 90, true); 
		t7_1.addMember("doctor", 50);
		t7_1.addMember("physician", 45);
		t7_1.addMember("medicine", 40);
		t7_1.addMember("patient", 40);
		t7_1.addMember("employment", 35);
		t7_1.addMember("specialty", 30);
		t7_1.addMember("enrollment", 25); 
		Topic t7_2 = t7.addMember("Facilities", 80, true); 
		t7_2.addMember("hospital", 50); 
		t7_2.addMember("occupancy", 45);
		t7_2.addMember("MRI", 40); 
		t7_2.addMember("CT", 40);
		t7_2.addMember("bed", 35); 
		t7_2.addMember("medicare", 30); 
		t7_2.addMember("supplier", 25); 
		Topic t8 = group.addMember("Cost", 160);
		Topic t8_1 = t8.addMember("Expenditures", 80, true);
		t8_1.addMember("insurance", 50); 
		t8_1.addMember("expense", 45);
		t8_1.addMember("GDP", 40); 
		t8_1.addMember("CPI", 40); 
		t8_1.addMember("growth", 35); 
		t8_1.addMember("service", 30);
		t8_1.addMember("payment", 25);
		Topic t8_2 = t8.addMember("Programs", 80, true); 
		t8_2.addMember("medicaid", 50); 
		t8_2.addMember("beneficiary", 45); 
		t8_2.addMember("reimburse", 40); 
		t8_2.addMember("veteran", 35); 
		t8_2.addMember("FFS", 35);
		t8_2.addMember("eligibility", 30);
		t8_2.addMember("enrollee", 25); 
		return group; 
	}
	public static Topic createTopic_2009(int w, int h){
		//TODO
		Topic group = Topic.Root("Topics in Health", w, h); 
		Topic t1 = group.addMember("Population", 90, true);
		t1.addMember("level", 50); 
		t1.addMember("age", 45); 
		t1.addMember("sex", 40); 
		t1.addMember("race", 35); 
		t1.addMember("Hispanic", 30); 
		t1.addMember("origin", 25);
		t1.addMember("income", 25); 
		Topic t2 = group.addMember("Natality", 85, true);
		t2.addMember("weight", 50);
		t2.addMember("height", 45); 
		t2.addMember("birth", 40); 
		t2.addMember("feeding", 35);
		t2.addMember("pregnancy", 30);
		t2.addMember("abortion", 25); 
		t2.addMember("contracept", 25);
		Topic t3 = group.addMember("Mortality", 80, true);
		t3.addMember("expectancy", 50); 
		t3.addMember("cardiovascular", 45);
		t3.addMember("diseases", 40);
		t3.addMember("injuries", 35);
		t3.addMember("cause", 30);
		t3.addMember("drug", 25);
		t3.addMember("accident", 25); 
		Topic t4 = group.addMember("Measure of Health", 100, true);
		t4.addMember("occupation", 50); 
		t4.addMember("geography", 50); 
		t4.addMember("diabetes", 45); 
		t4.addMember("urbanization", 40); 
		t4.addMember("obesity", 35); 
		t4.addMember("education", 30); 
		t4.addMember("smoking", 25); 
		Topic t5 = group.addMember("Abulatory Care", 98, true); 
		t5.addMember("prescription", 50); 
		t5.addMember("outpatient", 50); 
		t5.addMember("vaccination", 45); 
		t5.addMember("influenza", 40); 
		t5.addMember("emergency", 35); 
		t5.addMember("mammography", 30);  
		t5.addMember("rehabilitation", 25); 
		Topic t6 = group.addMember("Inpatient Care", 98, true);
		t6.addMember("hospital", 50); 
		t6.addMember("admission", 50); 
		t6.addMember("discharge", 45);  
		t6.addMember("diagnosis", 35); 
		t6.addMember("procedure", 30); 
		t6.addMember("visit", 30); 
		t6.addMember("surgery", 30);  
		Topic t7 = group.addMember("Resources", 170); 
		Topic t7_1 = t7.addMember("Personnel", 90, true); 
		t7_1.addMember("doctor", 50);
		t7_1.addMember("physician", 45);
		t7_1.addMember("medicine", 40);
		t7_1.addMember("patient", 40);
		t7_1.addMember("employment", 35);
		t7_1.addMember("specialty", 30);
		t7_1.addMember("enrollment", 25); 
		Topic t7_2 = t7.addMember("Facilities", 80, true); 
		t7_2.addMember("hospital", 50); 
		t7_2.addMember("occupancy", 45);
		t7_2.addMember("MRI", 40); 
		t7_2.addMember("CT", 40);
		t7_2.addMember("bed", 35); 
		t7_2.addMember("medicare", 30); 
		t7_2.addMember("supplier", 25); 
		Topic t8 = group.addMember("Cost", 160);
		Topic t8_1 = t8.addMember("Expenditures", 80, true);
		t8_1.addMember("insurance", 50); 
		t8_1.addMember("expense", 45);
		t8_1.addMember("GDP", 40); 
		t8_1.addMember("CPI", 40); 
		t8_1.addMember("growth", 35); 
		t8_1.addMember("service", 30);
		t8_1.addMember("payment", 25);
		Topic t8_2 = t8.addMember("Programs", 80, true); 
		t8_2.addMember("medicaid", 50); 
		t8_2.addMember("beneficiary", 45); 
		t8_2.addMember("reimburse", 40); 
		t8_2.addMember("veteran", 35); 
		t8_2.addMember("FFS", 35);
		t8_2.addMember("eligibility", 30);
		t8_2.addMember("enrollee", 25); 
		return group; 
	}
	public static Topic createTopic_2008(int w, int h){
		//TODO
		Topic group = Topic.Root("Topics in Health", w, h); 
		Topic t1 = group.addMember("Population", 90, true);
		t1.addMember("level", 50); 
		t1.addMember("age", 45); 
		t1.addMember("sex", 40); 
		t1.addMember("race", 35); 
		t1.addMember("Hispanic", 30); 
		t1.addMember("origin", 25);
		t1.addMember("income", 25); 
		Topic t2 = group.addMember("Natality", 85, true);
		t2.addMember("weight", 50);
		t2.addMember("height", 45); 
		t2.addMember("birth", 40); 
		t2.addMember("feeding", 35);
		t2.addMember("pregnancy", 30);
		t2.addMember("abortion", 25); 
		t2.addMember("contracept", 25);
		Topic t3 = group.addMember("Mortality", 80, true);
		t3.addMember("expectancy", 50); 
		t3.addMember("cardiovascular", 45);
		t3.addMember("diseases", 40);
		t3.addMember("injuries", 35);
		t3.addMember("cause", 30);
		t3.addMember("drug", 25);
		t3.addMember("accident", 25); 
		Topic t4 = group.addMember("Measure of Health", 100, true);
		t4.addMember("occupation", 50); 
		t4.addMember("geography", 50); 
		t4.addMember("diabetes", 45); 
		t4.addMember("urbanization", 40); 
		t4.addMember("obesity", 35); 
		t4.addMember("education", 30); 
		t4.addMember("smoking", 25); 
		Topic t5 = group.addMember("Abulatory Care", 98, true); 
		t5.addMember("prescription", 50); 
		t5.addMember("outpatient", 50); 
		t5.addMember("vaccination", 45); 
		t5.addMember("influenza", 40); 
		t5.addMember("emergency", 35); 
		t5.addMember("mammography", 30);  
		t5.addMember("rehabilitation", 25); 
		Topic t6 = group.addMember("Inpatient Care", 98, true);
		t6.addMember("hospital", 50); 
		t6.addMember("admission", 50); 
		t6.addMember("discharge", 45);  
		t6.addMember("diagnosis", 35); 
		t6.addMember("procedure", 30); 
		t6.addMember("visit", 30); 
		t6.addMember("surgery", 30);  
		Topic t7 = group.addMember("Resources", 170); 
		Topic t7_1 = t7.addMember("Personnel", 90, true); 
		t7_1.addMember("doctor", 50);
		t7_1.addMember("physician", 45);
		t7_1.addMember("medicine", 40);
		t7_1.addMember("patient", 40);
		t7_1.addMember("employment", 35);
		t7_1.addMember("specialty", 30);
		t7_1.addMember("enrollment", 25); 
		Topic t7_2 = t7.addMember("Facilities", 80, true); 
		t7_2.addMember("hospital", 50); 
		t7_2.addMember("occupancy", 45);
		t7_2.addMember("MRI", 40); 
		t7_2.addMember("CT", 40);
		t7_2.addMember("bed", 35); 
		t7_2.addMember("medicare", 30); 
		t7_2.addMember("supplier", 25); 
		Topic t8 = group.addMember("Cost", 160);
		Topic t8_1 = t8.addMember("Expenditures", 80, true);
		t8_1.addMember("insurance", 50); 
		t8_1.addMember("expense", 45);
		t8_1.addMember("GDP", 40); 
		t8_1.addMember("CPI", 40); 
		t8_1.addMember("growth", 35); 
		t8_1.addMember("service", 30);
		t8_1.addMember("payment", 25);
		Topic t8_2 = t8.addMember("Programs", 80, true); 
		t8_2.addMember("medicaid", 50); 
		t8_2.addMember("beneficiary", 45); 
		t8_2.addMember("reimburse", 40); 
		t8_2.addMember("veteran", 35); 
		t8_2.addMember("FFS", 35);
		t8_2.addMember("eligibility", 30);
		t8_2.addMember("enrollee", 25); 
		return group; 
	}
}
